package yf.platform.ctl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Yfsoft on 2016/8/18.
 */
@Controller
@RequestMapping("/main")
public class MainCtl {

    @RequestMapping(value = "index",method = RequestMethod.GET)
    public String index(){
        //检测本地是否已经安装
        //检查本地是否产生 install.lock 文件

        return "main";
//        return "redirect:install";
    }

    @RequestMapping(value = "install",method = RequestMethod.GET)
    public String install() {
        //检测本地是否已经安装
        //检查本地是否产生 install.lock 文件

        return "install";
    }

}
